@import './themes';//引入主题颜色

//通用样式 这里不用去全部重定默认样式 antd已经帮我们完成了这一步工作
#main, #main>div, #main>div>section{
    height: 100%;
}

.center{text-align: center}
.left{text-align: left}
.right{text-align: right}
.lf{float: left}
.rf{float: right}
.relative{position: relative}
.absolute{position: absolute}
.clearfix:after {content: "."; display: block; height:0; clear:both; visibility: hidden;}
.clearfix { *zoom:1; }

.menuBtn{
    padding: 0 5px;
    background: #4f6273;
    color: #dcdee1;
    border: #3d4e5d;
    cursor: pointer;
}
.menuBtn:active,.menuBtn:focus{
    background: #4f6273;
    color: #dcdee1;
    border: #3d4e5d;
}
.menuBtn:hover{
    background: #747e91;
    color: #fcdee1;
}
.container{
    margin: 0 30px 30px 30px;
    position: relative;
    background: #f5f5f5;
    .box{
        width: 100%;
        padding: 30px;
        min-height: 940px;
    }
}
//antd 样式定制
//antd menu菜单样式修改
.ant-menu-dark, .ant-menu-dark .ant-menu-sub,.ant-layout-sider{
    background: @theme !important;
}
.ant-menu-dark .ant-menu-inline.ant-menu-sub{
    background: @darkTheme !important;
}
.ant-menu.ant-menu-inline.ant-menu-sub{
    background: @darkTheme !important;
}
.ant-menu-submenu-open{
    background: @darkTheme !important;
}
.ant-menu-sub{
    .ant-menu-item{
        background: @lightTheme !important;
        .anticon, .ant-menu-submenu-title .anticon{
            font-size: 16px;
        }
    }
    .ant-menu-item.ant-menu-item-selected{
        background: #1b95dc !important;
    }
}
//菜单
.ant-menu-vertical .ant-menu-item, .ant-menu-inline .ant-menu-item{
    font-size: 14px;
}
.ant-menu-vertical .ant-menu-submenu-title, .ant-menu-inline .ant-menu-submenu-title{
    font-size: 16px;
}
.ant-menu-inline-collapsed > .ant-menu-item .anticon, .ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .anticon, .ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .anticon{
    font-size: 22px;
}

//antd layout布局样式修改
.ant-layout-content{
    height: 100%;
}
.ant-layout-content::-webkit-scrollbar {
    display: none;}
.ant-layout-sider.ant-layout-sider-has-trigger,.ant-layout-header{
    background: #fff
}
.ant-layout-header{
    padding: 0;
    height: 80px;
}
.ant-layout-sider{
    transition:all 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.ant-layout-sider-trigger{
    color: #3c5e80;
    background: @darkTheme;
    font-size: 20px;
}
.ant-layout-sider-trigger:hover{
    color: #e3e3e3;
}

.ant-layout.ant-layout-has-sider{
    height: 100%;
}
.ant-layout-sider-collapsed{
    flex: 0 0 68px !important;
    max-width: 68px !important;
    min-width: 68px !important;
    width: 68px !important;
}

//antd tag标签页修改
.ant-tag{
    height: 36px;
    line-height: 30px;
    padding: 3px 10px;
    margin: 0 5px;
}

//antd table 表格修改
.ant-table-thead > tr > th, .ant-table-tbody > tr > td{
    padding: 10px 8px !important;
}

//antd modal 对话框修改
.ant-modal{
    top: 30%;
}
.ant-modal-footer{
    text-align: center !important;
}
//ant input 输入框
.ant-input{
    border-radius: 0 !important;
}
.ant-input-group-addon{
    border-radius: 0 !important;
}
//ant btn 按钮
.ant-modal-content .ant-btn, .ant-modal-content .ant-btn:hover, .ant-modal-content .ant-btn:focus {
    color: #536a7f;
    border-color: #536a7f;
}
.ant-modal-content{
    .ant-btn-primary,
    .ant-btn-primary:hover,
    .ant-btn-primary:focus {
        color: #fff;
        background-color: #536a7f;
        border-color: #536a7f;
    }
}
//ant pagination 分页
.ant-pagination-item:focus, .ant-pagination-item:hover{
    transition: all .3s;
    border-color: #536a7f; 
}
.ant-pagination-item li a, .ant-pagination-item:focus a, .ant-pagination-item:hover a{
    color: #536a7f;
}
.ant-pagination-item-active, 
.ant-pagination-item-active:focus, 
.ant-pagination-item-active:hover{
    background-color: #536a7f;
    border-color: #536a7f;
}
.ant-pagination-item-active a, 
.ant-pagination-item-active:focus a, 
.ant-pagination-item-active:hover a{
    color: #fff;
}
.ant-pagination-prev:focus .ant-pagination-item-link, 
.ant-pagination-next:focus .ant-pagination-item-link, 
.ant-pagination-prev:hover .ant-pagination-item-link, 
.ant-pagination-next:hover .ant-pagination-item-link{
    border-color: #536a7f;
    color: #536a7f;
}
//ant message 提示信息
.ant-message{
    top: 80px;
    font-size: 15px;
}
.ant-btn-primary{
    background: @button !important;
}
.ant-btn-primary:hover{
    background: @btnHover !important;
}

label{
    font-size: 14px;
}
.tags{
    display: inline-block;
    height: 36px;
    line-height: 30px;
    padding: 3px 10px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 3px;
    a{
        color: #eee;
    }
    .tagclose{
        color: #eee;
        padding-left: 5px;
    }
}